package com.dc.refactoring._2_在对象之间搬移特性._4_InlineClass.oldObject;

/**
 * Description: 将类内联化_Person
 * @author: gdc
 * @date: 2020/11/15
 * @version 1.0
 */
public class Person {
    /**
     * 名称
     */
    private String name;
    /**
     * 电话号码类引用
     */
    private TelephoneNumber telephoneNumber;

    public String getTelephoneNumber() {
        return telephoneNumber.getTelephoneNumber();
    }

    public String getOfficeAreaCode() {
        return telephoneNumber.getOfficeAreaCode();
    }

    public void setOfficeAreaCode(String officeAreaCode) {
        telephoneNumber.setOfficeAreaCode(officeAreaCode);
    }
}
